package pers.litao.bit.commons.entities.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import pers.litao.bit.commons.vo.order.AddressPointVo;

import java.io.Serializable;
import java.util.List;

/**
 * @author 李涛
 * @date 2020-12-08 13:54
 */
@Data
@TableName("t_distribution")
@Accessors(chain = true)
public class DistributionEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 供应商ID
     */
    private Long userId;
    /**
     * 订单ID
     */
    private String orders;
    /**
     * 用户地址
     */
    private String points;
    private Long createTime;
    /**
     * 起始地址
     */
    private String beginAddress;
    /**
     * 终止地址
     */
    private String endAddress;
    private Integer status;
    @TableField(exist = false)
    private List<Long> ordersList;
    @TableField(exist = false)
    private List<AddressPointVo> pointsList;
}
